package ua.kpi_java_training.evgeniygusar.module2.tests;

import org.junit.Test;
import ua.kpi_java_training.evgeniygusar.module2.*;

public class AllPredatorsTest {
    AllPredators predatorsObject = new AllPredators();

    @Test
    public void testGetTotalNumberOfEatedVictims() throws Exception {
        assert(0==predatorsObject.getTotalNumberOfEatedVictims());
    }

    @Test
    public void testIncrementTotalNumberOfEatedVictims() throws Exception {
        predatorsObject.incrementTotalNumberOfEatedVictims();
        assert(1==predatorsObject.getTotalNumberOfEatedVictims());
    }

    @Test
    public void testGetPredatorBirthCycle() throws Exception {
        assert(4==predatorsObject.getPredatorBirthCycle());
    }

    @Test
    public void testAddPredator() throws Exception {
        predatorsObject.addPredator();
        assert(1==predatorsObject.numbersOfPredators());
    }

    @Test
    public void testGetPredator() throws Exception {
        predatorsObject.getPredator(0).x=1;
        assert(1==predatorsObject.getPredator(0).x);
    }

    @Test
    public void testNumbersOfPredators() throws Exception {
        assert(0==predatorsObject.numbersOfPredators());
    }
}
